package com.daikuan.fffkuaiban.ui.fragment;

import android.widget.TextView;

import com.daikuan.fffkuaiban.ui.activity.QiangqianActivity;
import com.daikuan.fffkuaiban.widget.ShareDialogFragment;
import com.jarhead.common.base.BaseFragment;
import com.daikuan.fffkuaiban.R;
import com.daikuan.fffkuaiban.ui.activity.AboutUsActivity;
import com.daikuan.fffkuaiban.ui.activity.WebViewActivity;

import butterknife.Bind;
import butterknife.OnClick;

/**
 * Created by jiming1 on 2017/6/30.
 */
public class UserCenterFragment extends BaseFragment {
	@Bind(R.id.tvXInyongka)
	TextView tvXInyongka;

	@Override
	protected int getLayoutResource() {
		return R.layout.fragment_usercenter;
	}

	@Override
	public void initPresenter() {

	}

	@Override
	protected void initView() {

	}

	@Override
	protected void initData() {
		tvXInyongka.setText("贷款&信用卡中心");
	}

	@OnClick(R.id.llAboutUs)
	public void aboutUs() {
		startActivity(AboutUsActivity.class);
	}

	@OnClick(R.id.llXinyongka)
	public void llXinyongka() {
		WebViewActivity.skip(getActivity(), "http://ju.kuaibandai.com", "贷款&信用卡中心");
	}

	@OnClick(R.id.llYuyue)
	public void llYuyue() {
		WebViewActivity.skip(getActivity(), "http://8.yun.haodai.com/?ref=hd_11012042", "预约办卡");
	}

	@OnClick(R.id.llZhengxin)
	public void llZhengxin() {
		WebViewActivity.skip(getActivity(), "http://www.kuaicha.info/mobile/credit/creditRegister.html", "个人征信查询");
	}


	@OnClick(R.id.llDownLoad)
	public void llDownLoad() {
		WebViewActivity.skip(getActivity(), "https://credit.haodai.com/?ref=hd_11012042", "办卡中心");
	}

	@OnClick(R.id.llQiangQian)
	public void llQiangQian() {
		startActivity(QiangqianActivity.class);
	}

	@OnClick(R.id.llContactUs)
	public void llContactUs() {
		ShareDialogFragment shareDialogFragment = new ShareDialogFragment();
		shareDialogFragment.show(getFragmentManager(),"");
	}

	@OnClick(R.id.llMsg)
	public void llMsg() {
		WebViewActivity.skip(getActivity(), "http://ju.kuaibandai.com/", "贷款中心");
	}

//    https://cloud.haodai.com/Mobile/marketloan?ref=hd_11012042

}
